package cn.heycm.cachedrequest.util;

import jakarta.servlet.http.HttpServletRequest;

public class RequestUtil {

    public static boolean isMultipart(HttpServletRequest request) {
        // 获取请求的 Content-Type
        String contentType = request.getContentType();
        // 检查 Content-Type 是否包含 "multipart/form-data"
        return contentType != null && contentType.toLowerCase().startsWith("multipart/");
    }

}
